import request from "@/utils/request";
import store from "@/store/index";

// 夹带k_token
function addK_Token(data) {
    var token = {
        k_token: store.getters.k_token
    };
    Object.assign(data, token);
    return data;
}

// 答题后要获取当前他的答题时间[练习时间（单题）]
export function practiceTrainTime(data) {
    return request({
        url: "/location_url/user/Practice.User/PracticeTrainTime",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
